#include "mystdio.h"
#include <unistd.h>
int main()
{
  myFILE* fp = myfopen("log.txt","w");

  const char* tmp = "aaaaaaa\n";
  int cnt = 10;
  while(cnt--)
  {
    myfputs(tmp,fp);
    sleep(1);
    printf("outbuffer = %s,pos = %d\n",fp->outbuffer,fp->pos);
  }

  myfclose(fp);
}
